﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Common.Expressions
{
    public class SourceReference
    {
        private SourceCode sourceCode;
        public SourceCode SourceCode
        {
            get { return sourceCode; }
            set { sourceCode = value; }
        }

        private int beginLine;
        public int BeginLine
        {
            get { return beginLine; }
            set { beginLine = value; }
        }
        private int beginColumn;
        public int BeginColumn
        {
            get { return beginColumn; }
            set { beginColumn = value; }
        }

        private int endLine;
        public int EndLine
        {
            get { return endLine; }
            set { endLine = value; }
        }
        private int endColumn;
        public int EndColumn
        {
            get { return endColumn; }
            set { endColumn = value; }
        }

        public SourceReference(SourceCode sourceCode, int beginLine, int beginColumn, int endLine, int endColumn)
        {
            SourceCode = sourceCode;
            BeginLine = beginLine;
            BeginColumn = beginColumn;
            EndLine = endLine;
            EndColumn = endColumn;
        }
    }
}
